package cn.evilcoder;

import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.Timeout;

/**
 * User: evilcoder
 * Date: 2015/8/21
 * Time: 23:22
 */
public class TimeoutTest {

  @Rule
  public Timeout globalTimeout = Timeout.seconds(10); // 10 seconds max per method tested

  @Test
  public void testInfiniteLoop1() {
    for (;;) {
    }
  }

  @Test
  public void testInfiniteLoop2() {
    for (;;) {
    }
  }
}
